rm -rf ${BUILDDIR}/gcc-15.2.0
tar xf ${DOWNLOADDIR}/gcc-15.2.0.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/gcc-15.2.0
	mkdir tools-build-all
	pushd tools-build-all
		AR=ar LDFLAGS="-Wl,-rpath,${SYSDIR}/cross-tools/lib" \
		../configure --prefix=${SYSDIR}/cross-tools --build=${CROSS_HOST} \
		             --host=${CROSS_HOST} --target=${CROSS_TARGET} \
		             --with-sysroot=${SYSDIR}/sysroot --with-mpfr=${SYSDIR}/cross-tools \
		             --with-gmp=${SYSDIR}/cross-tools --with-mpc=${SYSDIR}/cross-tools \
		             --enable-__cxa_atexit --enable-threads=posix --with-system-zlib \
		             --enable-libstdcxx-time --enable-checking=release \
		             --enable-default-pie \
		             --enable-languages=c,c++,fortran,objc,obj-c++,lto
		make ${JOBS}
		make install-strip
	popd
popd
